package com.woniu.service;

import com.woniu.entity.Warehouse;
import com.woniu.util.ResponseUtil;

public interface WarehouseService  {
    // 新增仓库
    ResponseUtil addWarehouse(Warehouse warehouse);

    // 删除仓库
    ResponseUtil deleteWarehouse(Integer warehouseId);

    // 更新仓库
    ResponseUtil updateWarehouse(Warehouse warehouse);

    // 根据ID查询仓库
    ResponseUtil getWarehouseById(Integer warehouseId);

    // 查询所有仓库
    ResponseUtil getAllWarehouses();

    // 模糊查询
    ResponseUtil searchWarehouses(String name, String address);

    // 停用仓库
    ResponseUtil disableWarehouse(Warehouse warehouse);
}
